package com.medical.data.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.AssertTrue;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class UserLoginVo {

    @Email(message = "用户名邮箱格式错误")
    @ApiModelProperty(value = "用户名")
    private String userName;

    @NotBlank(message = "密码不可为空")
    @ApiModelProperty(value = "password")
    private String password;

    @AssertTrue(message = "需要同意条款")
    @ApiModelProperty(value = "是否同意条款")
    private Boolean isAgree;



}